//
//  UserWebService.h
//  YYZB
//
//  Created by 顾悦 on 16/3/28.
//
//

#import "WebService.h"

@interface UserWebService : WebService

- (void)login:(NSString *)username
     password:(NSString *)password
completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

- (void)login:(NSString *)username
   verifyCode:(NSString *)verifyCode
 verifyCodeID:(NSString *)verifyCodeID
completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

- (void)registe:(NSString *)username
     verifyCode:(NSString*)verifyCode
       password:(NSString *)password
   verifyCodeId:(NSString*)codeId
completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

-(void)getVerifyCode:(NSString*)phoneNum
                flag:(NSString*)flag
   completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

- (void)forgetPassword:(NSString *)username
            verifyCode:(NSString*)verifyCode
         password:(NSString *)password
          verifyCodeID:(NSString*)codeId
completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

- (void)recoveryPassword:(NSString *)username
              verifyCode:(NSString*)verifyCode
                password:(NSString *)password
            verifyCodeId:(NSString*)codeId
       completionHanlder:(void (^)(NSArray *items, NSError *error))completionHanlder;

@end
